package me.firstapp.service.shop;

import me.firstapp.module.shop.ShoppingCartItem;

public interface ShoppingCartItemService {

	/**
	 * 更新购物车
	 * 
	 * @param shoppingCartId
	 *            购物车id
	 * @param productId
	 *            商品id
	 * @param counts
	 *            要更新的数量，可正可负
	 */
	ShoppingCartItem addUpdateShoppingCartItem(Long shoppingCartId, Long productId, Long productSkuRelId,
			Integer counts, Long apiClientId);

	/**
	 * 删除购物车item
	 * 
	 * @param shoppingCartId
	 * @param productIds
	 * @param productSkuRelIds
	 * @param apiClientId
	 */
	void deleteShoppingCartItems(Long shoppingCartId, String productIds, String productSkuRelIds, Long apiClientId);
}
